import request from '@/utils/request'

// 查询炮筒表列表
export function listManholes(query) {
  return request({
    url: '/system/manholes/list',
    method: 'get',
    params: query
  })
}

// 查询炮筒表详细
export function getManholes(id) {
  return request({
    url: '/system/manholes/' + id,
    method: 'get'
  })
}

// 新增炮筒表
export function addManholes(data) {
  return request({
    url: '/system/manholes',
    method: 'post',
    data: data
  })
}

// 修改炮筒表
export function updateManholes(data) {
  return request({
    url: '/system/manholes',
    method: 'put',
    data: data
  })
}

// 删除炮筒表
export function delManholes(id) {
  return request({
    url: '/system/manholes/' + id,
    method: 'delete'
  })
}
